import * as THREE from "three"

console.log(THREE)

const scene =  new THREE.Scene()

const camara = new THREE.PerspectiveCamera(75,window.innerWidth/window.innerHeight,0.1,1000)

camara.position.set(0,0,10)

scene.add(camara)

const geometry = new THREE.BoxGeometry( 1, 1, 1 );
const material = new THREE.MeshBasicMaterial( {color: 0x00ff00} );
const cube = new THREE.Mesh( geometry, material );
scene.add( cube );

const  render =new THREE.WebGL1Renderer()

render.setSize(window.innerWidth,window.innerHeight)

document.body.appendChild(render.domElement)

render.render(scene,camara)